import request from '@/utils/request'

// 查询商品属性列表
export function listProductProperty(query) {
  return request({
    url: '/sell/productProperty/list',
    method: 'get',
    params: query
  })
}

export function listProductPropertyNoPage(query) {
  return request({
    url: '/sell/productProperty/listNoPage',
    method: 'get',
    params: query
  })
}


// 查询商品属性详细
export function getProductProperty(id) {
  return request({
    url: '/sell/productProperty/' + id,
    method: 'get'
  })
}

// 新增商品属性
export function addProductProperty(data) {
  return request({
    url: '/sell/productProperty',
    method: 'post',
    data: data
  })
}

// 修改商品属性
export function updateProductProperty(data) {
  return request({
    url: '/sell/productProperty',
    method: 'put',
    data: data
  })
}

// 删除商品属性
export function delProductProperty(id) {
  return request({
    url: '/sell/productProperty/' + id,
    method: 'delete'
  })
}
